package com.gexiaobao.pigeon.ui.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.gexiaobao.pigeon.R
import com.gexiaobao.pigeon.app.util.ImageLoaderManager
import com.makeramen.roundedimageview.RoundedImageView


/**
 * @Author      : hxw
 * @Date        : 2023/6/28 14:58
 * @Describe    :
 */
class EvaluateImageAdapter(data: ArrayList<String>) :
    BaseQuickAdapter<String, BaseViewHolder>(R.layout.item_evaluate_image, data) {

    private lateinit var ivEvaluateImage: RoundedImageView

    override fun convert(holder: BaseViewHolder, item: String) {
        ivEvaluateImage = holder.getView(R.id.ivEvaluateImage)
        ImageLoaderManager.loadRoundImage(context, item, ivEvaluateImage, 20)
    }
}